﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoreEPG.Model
{
    public class MCProgramInfo
    {
        /// <summary>
        /// Title of the Program
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Description of the Prrogram
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// UID of the Program
        /// </summary>
        public string UID { get; set; }

        /// <summary>
        /// First Air Date of the Program
        /// </summary>
        public DateTime FirstScheduleEntry { get; set; }

        /// <summary>
        /// Hash Code of the Program for fast Search
        /// </summary>
        public int HashCode { get; set; }


        public void setHashCode()
        {
            this.HashCode = HelperClass.GetHashCode(Title, Description);
        }

        public MCProgramInfo()
        {

        }

        public MCProgramInfo(string title, string Description)
        {
            this.Title = title;
            this.Description = Description;
            this.setHashCode();
        }

        public MCProgramInfo(string title, string Description, string uid)
        {
            this.Title = title;
            this.Description = Description;
            this.UID = uid;
            this.setHashCode();
        }

    }
}
